package pers.mihao.quickstream.common.task.dto.convertor;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import pers.mihao.quickstream.common.model.convertor.BaseConvert;
import pers.mihao.quickstream.common.task.dto.AutomaticTaskDTO;
import pers.mihao.quickstream.common.task.repository.domain.AutomaticTaskDO;

/**
 * @author mihao
 * @since 2024/11/15
 */
@Mapper
public interface TaskConvert extends BaseConvert {

    TaskConvert INSTANCE = Mappers.getMapper(TaskConvert.class);

    AutomaticTaskDO map2TaskDO(AutomaticTaskDTO automaticTaskDTO);

    AutomaticTaskDTO map2TaskDTO(AutomaticTaskDO automaticTaskDO);


}
